package com.sp.scmdb.bean;

import org.joda.time.DateTime;

public class ReaderBean extends PageBean {
	private Integer id;
	private int lrmID;
	private String lrmName;
	private String lrmType;
	private int lrmX;
	private int lrmY;
	private int lrmRadius;
	
	private String lrmState;
	private DateTime lrmTime;
	private String rmk;
	private String mapID;
	private boolean monitorDaySecurity;
	private SecurityTrainingBean securityTraining;
	private String dangerousMans;
	private String dangerousMansName;
	private String previousReaders;
	private String behindReaders;
	private float oftenHoursSendSMS;
	
	public String getRmk() {
		return rmk;
	}

	public void setRmk(String rmk) {
		this.rmk = rmk;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public int getLrmID() {
		return lrmID;
	}

	public void setLrmID(int lrmID) {
		this.lrmID = lrmID;
	}

	public String getLrmName() {
		return lrmName;
	}

	public void setLrmName(String lrmName) {
		this.lrmName = lrmName;
	}

	public int getLrmX() {
		return lrmX;
	}

	public void setLrmX(int lrmX) {
		this.lrmX = lrmX;
	}

	public int getLrmY() {
		return lrmY;
	}

	public void setLrmY(int lrmY) {
		this.lrmY = lrmY;
	}

	public DateTime getLrmTime() {
		return lrmTime;
	}

	public void setLrmTime(DateTime lrmTime) {
		this.lrmTime = lrmTime;
	}

	public String getLrmType() {
		return lrmType;
	}

	public void setLrmType(String lrmType) {
		this.lrmType = lrmType;
	}

	public String getLrmState() {
		return lrmState;
	}

	public void setLrmState(String lrmState) {
		this.lrmState = lrmState;
	}
	
	public boolean getMonitorDaySecurity() {
		return monitorDaySecurity;
	}

	public void setMonitorDaySecurity(boolean monitorDaySecurity) {
		this.monitorDaySecurity = monitorDaySecurity;
	}
	public SecurityTrainingBean getSecurityTraining() {
		return securityTraining;
	}
	public void setSecurityTraining(SecurityTrainingBean securityTraining) {
		this.securityTraining = securityTraining;
	}
	public String getDangerousMans() {
		return dangerousMans;
	}
	public void setDangerousMans(String dangerousMans) {
		this.dangerousMans = dangerousMans;
	}
	public String getDangerousMansName() {
		return dangerousMansName;
	}
	public void setDangerousMansName(String dangerousMansName) {
		this.dangerousMansName = dangerousMansName;
	}
	public String getPreviousReaders() {
		return previousReaders;
	}
	public void setPreviousReaders(String previousReaders) {
		this.previousReaders = previousReaders;
	}
	public String getBehindReaders() {
		return behindReaders;
	}
	public void setBehindReaders(String behindReaders) {
		this.behindReaders = behindReaders;
	}

	public float getOftenHoursSendSMS() {
		return oftenHoursSendSMS;
	}

	public void setOftenHoursSendSMS(float oftenHoursSendSMS) {
		this.oftenHoursSendSMS = oftenHoursSendSMS;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + lrmID;
		result = prime * result + ((lrmName == null) ? 0 : lrmName.hashCode());
		result = prime * result + ((lrmState == null) ? 0 : lrmState.hashCode());
		result = prime * result + ((lrmTime == null) ? 0 : lrmTime.hashCode());
		result = prime * result + ((lrmType == null) ? 0 : lrmType.hashCode());
		result = prime * result + lrmX;
		result = prime * result + lrmY;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ReaderBean other = (ReaderBean) obj;
		if (lrmID != other.lrmID)
			return false;
		if (lrmName == null) {
			if (other.lrmName != null)
				return false;
		} else if (!lrmName.equals(other.lrmName))
			return false;
		if (lrmState == null) {
			if (other.lrmState != null)
				return false;
		} else if (!lrmState.equals(other.lrmState))
			return false;
		if (lrmTime == null) {
			if (other.lrmTime != null)
				return false;
		} else if (!lrmTime.equals(other.lrmTime))
			return false;
		if (lrmType == null) {
			if (other.lrmType != null)
				return false;
		} else if (!lrmType.equals(other.lrmType))
			return false;
		if (lrmX != other.lrmX)
			return false;
		if (lrmY != other.lrmY)
			return false;
		return true;
	}

	public void setMapID(String mapID) {
		this.mapID = mapID;
	}

	public String getMapID() {
		return mapID;
	}

	public void setLrmRadius(int lrmRadius) {
		this.lrmRadius = lrmRadius;
	}

	public int getLrmRadius() {
		return lrmRadius;
	}

}
